#ifndef COMMANDSENDER_H
#define COMMANDSENDER_H

#include <QObject>
#include "CommandSenderThread.h"

class Action;

class CommandSender : public QObject
{
    Q_OBJECT

    //timer!

    CommandSenderThread* a;
public:

    CommandSender()
    {
        //printf("In const\n");
        a = new CommandSenderThread();
        connect(this, SIGNAL(sendActionSign(Action)), a, SLOT(sendAction(Action)));
        a->start();
    }

    void sendActionT(Action a) {emit sendActionSign(a); }

signals:
    //void sendMovementSign(Movement);
    void sendActionSign(Action);

};

#endif // COMMANDSENDER_H
